//
//  JSHttpRequest.m
//  JigSaw
//
//  Created by Slim Wang on 15/3/11.
//  Copyright (c) 2015年 LITB. All rights reserved.
//

#import "JSHttpRequest.h"
#import "NSObject+ObjectMap.h"

@implementation JSHttpRequest

- (NSString *)url
{
    return [NSString stringWithFormat:@"%@%@", [self baseServerUrl], [self subUri]];
}

- (NSDictionary *)toParameters
{
    return [self toDictionary];
}

- (NSDictionary *)toDictionary
{
    return [self objectDictionary];
}

- (id)onResponse:(id)response
{
    return nil;
}

#pragma mark - VSHttpRequestProtocol

- (NSString *)baseServerUrl
{
    [self doesNotRecognizeSelector:_cmd];
    return nil;
}

- (NSString *)subUri
{
    [self doesNotRecognizeSelector:_cmd];
    return nil;
}

-(NSMutableDictionary *)requestHeaders
{
    return [@{} mutableCopy];
}

@end
